package ru.study.thinkin.chapter3;

public class Assigment {
	public static void main(String[] args) {
		Tank t1 = new Tank();
		Tank t2 = new Tank();
		
		t1.level=9;
		t1.version="55";
		t2.level=9;
		t2.version="77";
		
		System.out.println("T1="+t1.level);
		System.out.println("T2="+t2.level);
		System.out.println("eq="+t1.equals(t2));
		
		t1=t2;
		
		System.out.println("T1="+t1.level);
		System.out.println("T2="+t2.level);
		System.out.println("eq="+t1.equals(t2));
		
		/*t2.level=45;
		System.out.println("T1="+t1.level);
		System.out.println("T2="+t2.level);
		*/
		
		t1.level=t2.level;
		System.out.println("T1="+t1.level);
		System.out.println("T1 vers="+t1.version);
		System.out.println("T2="+t2.level);
		System.out.println("T2 vers="+t2.version);
		
		
		
	}
}

